from . import status_code
import json


def jsonify(response, start_response, code=status_code.HTTP_OK, headers=(('Content-Type', 'application/json'),('Access-Control-Allow-Origin','*'))):
    start_response(code, headers)
    return json.dumps(response)
